package com.changgou.pay.service;

import java.util.Map;

/**
 * @ClassName WeiXinService
 * @Description
 * @Author Mr.L
 * @Date 17:14 2019/11/26
 * @Version 2.1
 **/
public interface WeiXinPayService {

    /**
     * 生成二维码
     * @param money     支付金额
     * @return
     */
    Map<String, String> createNative(Map<String, String> money);

    /**
     * 查询支付状态
     * @param outtradeno
     * @return
     */
    Map<String, String> queryPayStatus(String outtradeno);

    /**
     * 关闭支付
     * @param orderId
     * @return
     */
    Map<String, String> closePay(Long orderId) throws Exception;
}
